<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" th:content="${contentAuthor}"/>
    <meta name="description" th:content="${content.seoDescription}"/>
    <meta name="keywords" th:content="${content.seoKeywords }"/>
    <link rel="shortcut icon" th:href="${settings.website_logo_small}">
    <link rel="stylesheet" href="/static/def/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="/static/def/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/def/plugins/iconfont/iconfont.css">
    <link rel="stylesheet" href="/static/def/plugins/animate/animate.min.css">
    <link rel="stylesheet" href="/static/def/css/style.css">
    <link rel="stylesheet" href="/static/def/css/layui-theme-nbv5.css">
    <link rel="stylesheet" href="/static/def/plugins/pushbar/pushbar.css">
    <link rel="stylesheet" href="/static/def/css/simple.css">
    <link rel="stylesheet" href="/static/def/css/content.css">
    <link rel="stylesheet" href="/static/def/plugins/editormd/css/editormd.preview.min.css">
    <link rel="stylesheet" href="/static/def/plugins/syntaxhighlighter/styles/shCore.css">
    <link rel="stylesheet" href="/static/def/plugins/syntaxhighlighter/styles/shThemeDefault.css">
    <title th:text="${content.title}"></title>
</head>
<body class="layui-anim layui-anim-fadein simple">
<!--顶部导航栏-->
<div th:replace="templates/def/fragment/header"></div>
<!--顶部文字-->
<div class="layui-container top-block">
    <blockquote class="layui-elem-quote">
        <span class="layui-breadcrumb">
            <a href="/">网站首页</a>
            <a href="">[[${content.title}]]</a>
            <a><cite>正文</cite></a>
        </span>
        <div class="clock layui-show-md-inline-block layui-show-lg-inline-block layui-hide-xs layui-hide-sm">
            <span class="clock-font">当前日期</span>：<span id="current-datetime"></span>
        </div>
    </blockquote>
</div>
<!--内容文章正体-->
<div id="main-body" class="layui-container">

</div>
<!--底部导航栏-->
<div th:replace="templates/def/fragment/footer"></div>
<!--移动设备菜单导航-->
<div th:replace="templates/def/fragment/mobile_nav"></div>

<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="/static/def/plugins/layui/layui.js"></script>
<script src="/static/def/js/svg.js"></script>
<script src="/static/def/plugins/jquery/jquery-2.1.4.min.js"></script>
<script src="/static/def/js/script.js"></script>
<script src="/static/def/js/notepress.js"></script>
<script src="/static/def/plugins/hc-sticky/hc-sticky.min.js"></script>
<script src="/static/def/plugins/pushbar/pushbar.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/XRegExp.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shCore.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushJScript.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushXml.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushCss.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushPerl.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushPython.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushRuby.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushJava.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushPlain.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushVb.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushCSharp.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushCpp.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushPowerShell.js"></script>
<script src="/static/def/plugins/syntaxhighlighter/scripts/shBrushSql.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/marked.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/prettify.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/raphael.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/underscore.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/flowchart.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/jquery.flowchart.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/lib/sequence-diagram.min.js"></script>
<script th:if="${!#strings.isEmpty(content.mdContent)}" src="/static/def/plugins/editormd/editormd.min.js"></script>

<!--suppress JSCheckFunctionSignatures -->
<script th:inline="javascript">
    var isMd = [[${!#strings.isEmpty(content.mdContent)}]];
    $(function () {

        window.addEventListener("scroll", npfront.headerScroll());
        npfront.miniHeader("main-body");
        npfront.miniTitle("main-body");
        new Pushbar({
            blur: true,
            overlay: true
        });


        layui.use(['layer', 'element', 'content'], function () {
            var layer = layui.layer,
                element = layui.element,
                c = layui.content;

            var settings = [[${settings}]];
            var contentObj = [[${content}]];
            var userCommentMap = [[${userCommentMap}]];
            var author = [[${author}]];
            var articlePageStyle = [[${settings.def_theme_conf.article_page_style}]];
            var cateList = [[${cateList}]];
            var tagList = [[${tagList}]];
            var linkList = [[${linkList}]];
            var randomContents = [[${randomContents}]];
            var npsu = [[${npsu}]];
            var tags = [[${tags}]];
            var comments = [[${comments}]];
            var headers = [[${headers}]];

            npfront.miniHeaderNavBtn(layer);

            element.render();

            if (articlePageStyle === '0' || articlePageStyle === '-1' || articlePageStyle === "1") {
                var obj = {
                    settings: settings,
                    author: author,
                    contentObj: contentObj,
                    cateList: cateList,
                    tagList: tagList,
                    linkList: linkList,
                    headers: headers,
                    randomContents: randomContents,
                    npsu: npsu,
                    tags: tags,
                    comments: comments,
                    articlePageStyle: articlePageStyle,
                    s: "",
                    userCommentMap: userCommentMap
                };
                c(obj);
            } else {
                layer.msg('文章风格设置出错！');
            }
            // SyntaxHighlighter.all();
        });

    });
</script>
</body>
</html>
